package com.yanqu.road.logic.bussiness.marriage;

import com.yanqu.road.entity.marriage.MarriageInfo;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class CrossMarriageBusiness {

    public static Map<String, MarriageInfo> getMarriageInfoMap() {
        return DaoHelper.getCrossMarriageDaoImpl().getMarriageInfoMap();
    }

    public static boolean addMarriageInfo(MarriageInfo data) {
        return DaoHelper.getCrossMarriageDaoImpl().add(data);
    }

    public static boolean updateMarriageInfo(MarriageInfo data) {
        return DaoHelper.getCrossMarriageDaoImpl().update(data);
    }
}
